package com.itqf.beanfactory;

import com.itqf.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * projectName: springframeworkgp8
 *
 * @author: 赵伟风
 * time: 2021/8/4 11:32
 * description:
 */
public class UseAOP {

    public static void main(String[] args) {

        ApplicationContext applicationContext =
                new ClassPathXmlApplicationContext("spring-service.xml");

        UserService service= applicationContext.getBean(UserService.class);


        //service.login();
        service.register();

    }
}
